package com.zjzywl.iotSendthings.repository;

import javax.transaction.Transactional;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
import com.zjzywl.iotSendthings.entity.Verify;

@Repository
public interface VerifyRepository extends JpaRepository<Verify,Integer> {
	Verify findByUuid(String uuid);
	@Transactional
	@Query(value = "delete from Verify where uuid=:uuid ", nativeQuery = true) 
	@Modifying
	void delectByUuid(@Param("uuid")String uuid);
}
